package 复习;

public class RoleA extends  AbstractRole{
    public RoleA(double price){
        this.setPrice(price);
    }


    @Override
    public double cost() {
        return super.getPrice();
    }
}
